package lab02.test20;

import java.util.Scanner;

/**
 * Created by leovo on 2017/11/1.
 */
public class Text01 {
    public static void main(String[] args) {
        System.out.println("请输入包含数字的字符串：");
        String input=new Scanner(System.in).next();
        char tmp;
        for(int i=0;i<input.length();i++){
            tmp=input.charAt(i);

            if(tmp>='0'&&tmp<='9'){
                System.out.print(tmp);
            }
        }

    }
}
